Skip to main content

Class: AutoretrieveApi

AutoretrieveApi - object-oriented interface

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AutoretrieveApi(configuration?, basePath?, fetch?)

Parameters

NameTypeDefault value
configuration?Configurationundefined
basePathstringBASE_PATH
fetchFetchAPIportableFetch

Inherited from

BaseAPI.constructor

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Properties

basePath

Protected basePath: string = BASE_PATH

Inherited from

BaseAPI.basePath

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60


configuration

Protected configuration: Configuration

Inherited from

BaseAPI.configuration

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:58


fetch

Protected fetch: FetchAPI = portableFetch

Inherited from

BaseAPI.fetch

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Methods

adminAutoretrieveInitPost

adminAutoretrieveInitPost(addresses, pubKey, options?): Promise<Response>

This endpoint registers a new autoretrieve server

Summary

Register autoretrieve server

Throws

Memberof

AutoretrieveApi

Parameters

NameTypeDescription
addressesstringAutoretrieve's comma-separated list of addresses
pubKeystringAutoretrieve's public key
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:1256


adminAutoretrieveListGet

adminAutoretrieveListGet(options?): Promise<Response>

This endpoint lists all registered autoretrieve servers

Summary

List autoretrieve servers

Throws

Memberof

AutoretrieveApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:1267


autoretrieveHeartbeatPost

autoretrieveHeartbeatPost(token, options?): Promise<Response>

This endpoint updates the lastConnection field for autoretrieve

Summary

Marks autoretrieve server as up

Throws

Memberof

AutoretrieveApi

Parameters

NameTypeDescription
tokenstringAutoretrieve's auth token
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:1279